#ifndef openColladahelp_h_h_h_h_h
#define openColladahelp_h_h_h_h_h
#include "stdafx.h"
#include "Math/COLLADABUMathMatrix4.h"

namespace XE
{

	class OpenColladaHelp
	{

	public:
		static void OpenColladaMatrixToxMatrix(xMatrix& xm, 	COLLADABU::Math::Matrix4& cm)
		{
			// memcpy((void*)&xm,(void*)&cm,sizeof(xm));
		
			cm =cm.transpose();

			xm.m[0][0] = cm[0][0]; xm.m[0][1] =cm[0][1]; xm.m[0][2] = cm[0][2]; xm.m[0][3] = cm[0][3];
			xm.m[1][0] = cm[1][0]; xm.m[1][1] =cm[1][1]; xm.m[1][2] = cm[1][2]; xm.m[1][3] = cm[1][3];
			xm.m[2][0] = cm[2][0]; xm.m[2][1] =cm[2][1]; xm.m[2][2] = cm[2][2]; xm.m[2][3] = cm[2][3];
			xm.m[3][0] = cm[3][0]; xm.m[3][1] =cm[3][1]; xm.m[3][2] = cm[3][2]; xm.m[3][3] = cm[3][3];

		}

	};

}

















#endif